package com.zbkj.common.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 用户ai信息表
 * </p>
 *
 * @author keNan
 * @since 2025-05-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_user_ai_info")
@ApiModel(value = "UserAiInfo对象", description = "用户ai信息表")
public class UserAiInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id")
    private Integer id;

    @ApiModelProperty(value = "身高(单位cm)")
    @NotNull(message = "身高不能为空")
    private BigDecimal height;

    @ApiModelProperty(value = "性别(0男  1女 )")
    @NotNull(message = "性别不能为空")
    private Integer sex;

    @ApiModelProperty(value = "胸围")
    private String bust;

    @ApiModelProperty(value = "体重(单位kg)")
    @NotNull(message = "体重不能为空")
    private BigDecimal weight;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "ai背景图主键id->eb_ai_background表的主键id")
    private Integer aiBackgroundId;

    @ApiModelProperty(value = "用户换脸后图片地址")
    private String userAiFace;

    @ApiModelProperty(value = "用户换脸后图片base64地址")
    private String userAiFaceBase;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "用户ai试衣背景图url")
    private String aiBackgroundUrl;

}
